package com.haiya.factory.absfactory.pizza;


import com.haiya.factory.absfactory.pizza.store.BjFactory;
import com.haiya.factory.absfactory.pizza.store.LdFactory;
import com.haiya.factory.absfactory.pizza.store.PizzaStore;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Client {
    public static void main(String[] args) throws IOException {
        BufferedReader strin = new BufferedReader(new InputStreamReader(System.in));
        System.out.println("input kouwei: ");
        String kouwei = strin.readLine();

        if (kouwei.equals("bj")) {
            /**
             * 创建北京口味的各种Pizza
             */
            new PizzaStore(new BjFactory());
        } else if (kouwei.equals("ld")) {
            /**
             * 创建北京口味的各种Pizza
             */
            new PizzaStore(new LdFactory());
        }
    }
}
